package com.qch.demo;

/**
 * @Author qch
 * @Date 2021/5/12
 */
public class ThreadTest implements Runnable{
    private int count;
    public ThreadTest(int count) {
        this.count = count;
    }

    public void run() {
        for (int i = 0; i < 10000; i++) {
          /*  try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }*/
            count++;
            System.out.println(Thread.currentThread()+":"+count);
        }

    }
}
